<!--[include file='admin_menu_header.htm']-->

<!--[get_booking_by_customer_id cus_id=$smarty.get.id]-->

<div align="center" style="padding: 2px; background-color: rgb(253, 253, 253); border: 1px dashed rgb(192, 192, 192);">
  <TABLE width="100%" >
    <TR>
      <TH align="left" colspan="2">Reference ID : <b style="color:#dc0e01;"><!--[$refid]--></b>
      <b style="color:#3333CC;">
        <!--[if $status_id == 1]-->
            (FINISHED)
        <!--[elseif $status_id == 2]-->
            (NEW)
        <!--[elseif $status_id == 3]-->
            (UNPAID)
        <!--[elseif $status_id == 4]-->
            (REFUND)
        <!--[/if]-->
      </b> 
      </TH>
    </TR>
  </TABLE>
</div><BR>
<div align="center" style="padding: 2px; background-color: rgb(253, 253, 253); border: 1px dashed rgb(192, 192, 192);">
  <TABLE width="100%" >
    <TR>
      <TH align="left" colspan="2" style="border-bottom: 1px solid rgb(192, 192, 192);">Contact details :</TH>
    </TR>
    <TR>
      <TD>&nbsp;</TD>
    </TR>
    <TR>
      <TD align="right" width="30%">Identificational/Passport no. :</TD>
      <TD align="left"  width="70%"><!--[$view.identificational]--></TD>
    </TR>
    <TR>
      <TD align="right">Title  : </TD>
      <TD align="left" ><!--[$view.nameprefix]--></TD>
    </TR>
    <TR>
      <TD align="right">First Name : </TD>
      <TD align="left" ><!--[$view.givenname]--></TD>
    </TR>
    <TR>
      <TD align="right">Last Name/Surname : </TD>
      <TD align="left" ><!--[$view.surname]--></TD>
    </TR>
    <TR>
      <TD align="right">Address : </TD>
      <TD align="left" ><!--[$view.addressline]--></TD>
    </TR>
    <TR>
      <TD align="right">Town/City :</TD>
      <TD align="left" ><!--[$view.cityname]--></TD>
    </TR>
    <TR>
      <TD align="right">State/Province:</TD>
      <TD align="left" ><!--[$view.stateprov]--></TD>
    </TR>
    <TR>
      <TD align="right">Country : </TD>
      <TD align="left" ><!--[$view.countryname]--></TD>
    </TR>
    <TR>
      <TD align="right">Zipcode : </TD>
      <TD align="left" ><!--[$view.postalcode]--></TD>
    </TR>
    <TR>
      <TD align="right">Mobile Phone : </TD>
      <TD align="left" ><!--[$view.mobile]--></TD>
    </TR>
    <TR>
      <TD align="right">Home Phone : </TD>
      <TD align="left" ><!--[$view.phone]--></TD>
    </TR>
    <TR>
      <TD align="right">Email : </TD>
      <TD align="left" ><!--[$view.email]--></TD>
    </TR>
      <td class="text" align="right" valign="top">Additional Request :</td>
      <td align="left" ><!--[$view.addition_request]--></td>
    </tr>
    <TR>
      <TD>&nbsp;</TD>
    </TR>
  </TABLE>
</div><BR><BR>


<div align="center" style="padding: 2px; background-color: rgb(253, 253, 253); border: 1px dashed rgb(192, 192, 192);">

  <TABLE  width="100%">

    <TR>
      <TH align="left" colspan="2" align="left" colspan="2" style="border-bottom: 1px solid rgb(192, 192, 192);"> PAYMENT :</TH>
    </TR>
    <TR>
      <TD>&nbsp;</TD>
    </TR>
    <TR>
      <TD align="right" width="30%">Card Type: 
      </TD>
      <TD align="left"  width="70%"><!--[$view.cardcode]--></TD>
    </TR>
    <TR>
      <TD align="right">Card Bank Name : </TD>
      <TD align="left" ><!--[$view.cardbankname]--></TD>
    </TR>
    <TR>
      <TD align="right">Card Issuing Country : </TD>
      <TD align="left" ><!--[$view.cardissuingcountry]--></TD>
    </TR>
    <TR>
      <TD>&nbsp;</TD>
    </TR>
  </TABLE>
</div><BR>


<div align="right" style="padding: 2px; background-color: rgb(253, 253, 253); border: 1px dashed rgb(192, 192, 192);">
<TABLE align="center" width="100%">
  <TR>
    <TH align="left" colspan="2" style="border-bottom: 1px solid rgb(192, 192, 192);">Reservation Details :</TH>
  </TR>
  <TR>
    <TD>
      <table width="100%" style="border: 1px dashed rgb(0, 245, 255);">
          <!--[foreach from=$bookingArray item=item name="foo"]-->
          <tr>
            <td width="10%">ห้อง</td>
            <td><!--[$item.roomtype]-->&nbsp;โรงแรม&nbsp;<!--[$item.hotelname]--></td>
            <td align="right">&nbsp;<!--[$item.room_rate|number_format:2:".":","]--> ฿</td>
          </tr>
          <tr>
            <td width="10%"></td>
            <td><!--[$item.amount_room]-->&nbsp;ห้อง</td>
            <td align="right">รวมเป็น&nbsp;<!--[$item.room_rate_total|number_format:2:".":","]--> ฿</td>
          </tr>
          <tr>
            <td width="10%">เช็คอิน</td>
            <td colspan="2"><!--[$item.checkin_date]-->&nbsp;</td>
          </tr>
          <tr>
            <td width="10%">เช็คเอ้าท์&nbsp;</td>
            <td colspan="2"><!--[$item.checkout_date]-->&nbsp;</td>
          </tr>
           <tr>
            <td align="center" colspan="3"><hr></td>
          </tr>
          <!--[/foreach]-->
      </table>
     </TD>
  </TR>

  </TABLE>
  <div align="right" style=" font-family:Arial, Helvetica, sans-serif;font-size:16px; background-color:#f0f2e6; padding:3px; width:50%; border: #99bf00 1px  dotted;">
  		<table width="100%" >
          <tr>
            <td width="50%" align="right">ค่าห้อง</td>
            <td align="right"><!--[math equation="x-(x*y)" x=$view.total_price y=0.07 assign="net"]--><!--[$net|number_format:2:".":","]-->&nbsp;บาท</td>
          </tr>
          <tr>
            <td width="50%" align="right">ภาษี 7%</td>
            <td align="right"><!--[math equation="x*y" x=$view.total_price y=0.07 assign="interest"]--><!--[$interest|number_format:2:".":","]-->&nbsp;บาท</td>
          </tr>
          <tr>
            <td width="50%" align="right"><font color="#FF3300"><b>รวมค่าใช้จ่ายทั้งสิ้น</b></font></td>
            <td align="right"><font color="#FF3300"><b><!--[$view.total_price|number_format:2:".":","]-->&nbsp; บาท</b></font></td>
          </tr>
    </table>
    </div>
</div>

<!--[include file='admin_menu_footer.htm']-->






